/*
 * HubMessage.java
 *
 * Created on 12 de Abril de 2006, 17:47
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package libjdc.dc.client.messages;

import hubsniffer.*;
import java.util.Date;

/**
 *
 * @author Daniel Botelho
 */
public class RawMessage {
    
    private Date date;
    private String from;
    private String to;
    private String message;
    
    /** Creates a new instance of HubMessage */
    public RawMessage(Date date,String from,String to,String message) {
        this.date = date;
        this.from = from;
        this.to= to;
        this.message = message;
    }

    public Date getDate() {
        return date;
    }

    public String getFrom() {
        return from;
    }

    public String getTo() {
        return to;
    }

    public String getMessage() {
        return message;
    }
    
    public String toString(){
        return "<"+date+"> From:"+from+" to:"+to+" message:"+message;
    }

}
